import { Storage } from '@ionic/storage';
import {Injectable} from '@angular/core';
@Injectable()
export class Data {
  constructor(public storage: Storage){
  }
  getData() {
    return this.storage.get('todos');
  }
  save(data){
    let newData = JSON.stringify(data);
    this.storage.set('todos', newData);


  }
}
